<%@page import="com.sun.crypto.provider.RSACipher"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@page import="henu.javaweb.util.WebDbPool"%>
<%@page import="java.sql.*"%>
<%@page import="henu.javaweb.bean.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>学生信息管理系统</title>
<link rel="stylesheet" href="../../css/bootstrap.min.css">
<link rel="stylesheet" href="../../css/my.css">
<script type="text/javascript" src="../../js/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="../../js/bootstrap.min.js"></script>
<script>
if(window.name != "bencalie"){
    location.reload();
    window.name = "bencalie";
}
else{
    window.name = "";
}
</script>
</head>
<body>   
	<%@include file="header.jsp" %>
	<div class="container">
		<form class="well form-inline" method="post" action="../../SearchSudentServlet" role="form">
			<h4>学生信息查询</h4>
			<div class="form-group">
				<input type="text" name="searching" placeholder="输入学号进行查询……" class="form-control" >
			</div>
			<input type="submit" name="start" value="查询" class="btn btn-primary form-control">
		</form>
 	<% 
		//Student s=new Student();
		if(session.getAttribute("seaStudent")!=null){
		Student s=(Student)session.getAttribute("seaStudent");
		%>
		<table id="student" class="table table-striped table-bordered">
			<tr>
				<td>学号</td>
				<td><%=s.getS_no()%></td>
				<td>姓名</td>
				<td><%=s.getS_name() %></td>
				<td rowspan="3">照片</td>
			</tr>
			<tr>
				<td>曾用名</td>
				<td><%=s.getS_nameUsed() %></td>
				<td>姓名拼音</td>
				<td><%=s.getS_spellname() %></td>
			</tr>
			<tr>
				<td>性别</td>
				<td><%=s.getS_gender() %></td>
				<td>身份证号</td>
				<td><%=s.getS_IDCard() %></td>
			</tr>
			<tr>
				<td>出生日期</td>
				<td><%=s.getS_birthdate() %></td>
				<td>民族</td>
				<td colspan="2"><%=s.getS_nation() %></td>
			</tr>	
	
			<tr>
				<td>籍贯</td>
				<td><%=s.getS_nativePlace() %></td>
				<td>政治面貌</td>
				<td colspan="2"><%=s.getS_politicalStatus() %></td>
			</tr>
			<tr>
				<td>联系电话</td>
				<td><%=s.getS_phone() %></td>
				<td>电子邮箱</td>
				<td colspan="2"><%=s.getS_email() %></td>
			</tr>
			<tr>
				<td>院系</td>
				<td><%=s.getS_faculty() %></td>
				<td>专业</td>
				<td colspan="2"><%=s.getS_major() %></td>
			</tr>
			<tr>
				<td>备注</td>
				<td colspan="4"><%=s.getS_remarks() %></td>
			</tr>
		</table>
		<%} %>
	</div>
	
</body>
</html>